package com.hilinos.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hilinos.base.user.entity.pojo.KeyInfoPoJo;
import com.hilinos.common.entity.BaseQo;

/**
 * @author hilinos
 * @since 2022-03-11
 */
public interface KeyInfoService extends IService<KeyInfoPoJo> {

    /**
     * 创建用户key
     *  @param keyExpTime
     * @param keyStatus
     * @return
     */
    KeyInfoPoJo create(String keyExpTime, Integer keyStatus);

    boolean isAdmin(String appid);

    IPage<KeyInfoPoJo> pageList(BaseQo<KeyInfoPoJo, KeyInfoPoJo, KeyInfoPoJo> qo);

    void edit(KeyInfoPoJo keyInfoPoJo);
}